package edu.hcmus.sow.web.user;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;

public class UserForm {

   private Integer id;

   @NotEmpty(message = "Username must not be blank.")
   @Size(min = 3, max = 50)
   private String username;

   @NotEmpty(message = "Password must not be blank.")
   @Size(min = 6, max = 12, message = "Password must between 6 to 12 Characters.")
   private String password;

   private Boolean enabled;

   public UserForm() {

   }

   public UserForm(Integer id, String username, String password, Boolean enabled) {
      this.id = id;
      this.username = username;
      this.password = password;
      this.enabled = enabled;
   }

   public Integer getId() {
      return id;
   }

   public void setId(Integer id) {
      this.id = id;
   }

   public String getUsername() {
      return username;
   }

   public void setUsername(String username) {
      this.username = username;
   }

   public String getPassword() {
      return password;
   }

   public void setPassword(String password) {
      this.password = password;
   }

   public Boolean getEnabled() {
      return enabled;
   }

   public void setEnabled(Boolean enabled) {
      this.enabled = enabled;
   }

}
